package com.cxy.dao;

import java.util.List;

import org.hibernate.Query;
import org.springframework.stereotype.Repository;

import com.cxy.pojo.Milestone;

@Repository
public class MilestoneDao  extends BaseDao<Milestone, Integer> {
	@SuppressWarnings("unchecked")
	public List<Milestone> findByPid(String pid){
		String hql = "from Milestone where pid=?";
		Query query = getSession().createQuery(hql);
		query.setParameter(0, pid);
		return query.list();
	}
}
